package com.karaku.karaku_collector.common.http;

/**
 * Created by guoping on 2017/7/11.
 */

class NetErrorHandler {

    private static long sLastShowTimeError = 0;

    static void handle(NetError error) {
        if (error == null || !error.isLogicError()) {
            return;
        }
//        if (error.code == NetStatusCode.GETOUT
//                || error.code == NetStatusCode.USERID_ERROR
//                || error.code == NetStatusCode.LOGIN_INVALID) {
//            int status=AccountManager.AGAINLOGINSTATUS_INVALID;
//            String msg = "";
//            if (error.code == NetStatusCode.LOGIN_INVALID) {
//                msg = "登录失效，请重新登录";
//            } else if (error.code == NetStatusCode.GETOUT) {
//                msg = "用户编号为空，请重新登录";
//            } else if (error.code == NetStatusCode.USERID_ERROR) {
//                msg = "您的操作违法了规则，暂时无法使用客户端";
//            }
//            //跳转到登录页面
//            AccountManager.againEnterLoginPage(App.getInstance(), status, msg);
//        }
    }
}
